<div class="block block-{{ data.contentModel }}" id="{{ data.getId() }}">
    {% if data.name is defined AND data.displayTitle %}<h3 class="block-title">{{ data.name }}</h3>{% endif %}
    {% if commentList %}
        <ul>
            {% for item in commentList %}
                <li class="clearfix">
                    <div class="user-avatar">
                        {% if item.anonymous is defined AND item.anonymous %}
                            <a href="#">
                                <img src="/modules/user/face/avatar{{ rand(1,5) }}.png">
                            </a>
                            <a href="#">匿名用户</a>
                        {% else %}
                        <a href="{{ url(['for':'user','id':item.user.getId()]) }}">
                            <img alt="{{ item.user.name }}"
                                 src="{% if item.user.face is defined AND item.user.face %}{{ item.user.face }}{% else %}https://avatar.duoshuo.com/avatar-50/214/226670.jpg{% endif %}">
                        </a>
                        <a href="{{ url(['for':'user','id':item.user.getId()]) }}">{{ item.user.name }}</a>
                        {% endif %}
                    </div>

                    <a class="comment-description" href="{{ url(['for':'node','id':item.getId()]) }}">{{ subString(item.body,data.subLength,true) }}</a>
                </li>
            {% endfor %}
        </ul>
    {% endif %}
</div>